package com.platform.enums;

import com.platform.comm.enums.IDictEntry;
import com.platform.comm.enums.IEnumItem;

/**
 * Title: DirExFlowDirection
 * Description: 资源交换处理方式
 * Date 2020/4/20
 *
 * @author wxw
 * @version v1.0
 */
public enum DirExProcessType implements IDictEntry, IEnumItem {
    /**
     * 处理方式
     */
    PL("批量"), DT("单条");

    private final String type;

    DirExProcessType(String type) {
        this.type = type;
    }

    @Override
    public String getKey() {
        return name();
    }

    @Override
    public String getValue() {
        return type;
    }

    @Override
    public Object getData() {
        return this;
    }

    @Override
    public boolean is(String code) {
        return name().equals(code);
    }
}
